//
//  TextCell.swift
//  test-ios
//
//  Created by wyz5204 on 2023/2/26.
//

import Foundation
import UIKit


class TextCell : AbstractTableViewCell<String>{
    
    lazy var textView : UILabel = {
        var text : UILabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: 100, height: 100))
        text.textColor = UIColor.blue
        text.backgroundColor = .red
        return text
    }()
    public var title : String = " null "{
        didSet{
            print("init TextCell title 2 \(title) \(oldValue)")
            textView.text = title
        }
    }
    override func initView() {
        print("init TextCell 1 \(title)")
        contentView.addSubview(textView)
    }
    
    override func initBinder(_ view: UITableView, _ data: String, _ index: IndexPath) {
        self.title = data
    }
}
